<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Treasure Island: richard.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo_groupe.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Treasure Island
   &#160;<span id="projectnumber">2.0</span>
   </div>
   <div id="projectbrief">Projet 1A</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">richard.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Définit les fonctions relatives à Richard.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;allegro.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="fonction_8h_source.html">fonction.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="menucine_8h_source.html">menucine.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="init_8h_source.html">init.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="richard_8h_source.html">richard.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for richard.c:</div>
<div class="dyncontent">
<div class="center"><img src="richard_8c__incl.png" border="0" usemap="#richard_8c" alt=""/></div>
<map name="richard_8c" id="richard_8c">
<area shape="rect" id="node9" href="fonction_8h.html" title="Le fichier Header relatif au fichier fonction.c." alt="" coords="272,83,349,112"/><area shape="rect" id="node11" href="menucine_8h.html" title="Le fichier Header relatif au fichier menucine.c." alt="" coords="373,83,461,112"/><area shape="rect" id="node13" href="init_8h.html" title="Le fichier Header relatif au fichier init.c." alt="" coords="485,83,536,112"/><area shape="rect" id="node15" href="richard_8h.html" title="Le fichier Header relatif au fichier richard.c." alt="" coords="560,83,632,112"/></map>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ae863cf9f0bdae7117bf8eb0d81bd52cc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="richard_8c.html#ae863cf9f0bdae7117bf8eb0d81bd52cc">main_fight</a> (<a class="el" href="structpersonage.html">personage</a> *p, <a class="el" href="structpersonage.html">personage</a> pirate[], int nbre)</td></tr>
<tr class="memitem:a6b548bb1a7244d813b34bdad9fb5fc27"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="richard_8c.html#a6b548bb1a7244d813b34bdad9fb5fc27">main_move</a> (int *x, char *d, int w)</td></tr>
<tr class="memitem:a860b2a3298b1730c8ad20ef00fd470ae"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a860b2a3298b1730c8ad20ef00fd470ae"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>get_main_path</b> (<a class="el" href="structpersonage.html">personage</a> p, char str[])</td></tr>
<tr class="memitem:a7b0d0c5bc72cabd9fb47ebd9b0cfa2da"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7b0d0c5bc72cabd9fb47ebd9b0cfa2da"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>reset_main</b> (<a class="el" href="structpersonage.html">personage</a> *p, int test)</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Définit les fonctions relatives à Richard. </p>
<dl class="section author"><dt>Author</dt><dd>H4Y3 </dd></dl>
<dl class="section version"><dt>Version</dt><dd>1.0 </dd></dl>
<dl class="section date"><dt>Date</dt><dd>22 Mai 2013 </dd></dl>
</div><h2>Function Documentation</h2>
<a class="anchor" id="ae863cf9f0bdae7117bf8eb0d81bd52cc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void main_fight </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpersonage.html">personage</a> *&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structpersonage.html">personage</a>&#160;</td>
          <td class="paramname"><em>pirate</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nbre</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Les actions relatives au fight </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>Un pointeur sur la structure personnage </td></tr>
    <tr><td class="paramname">nbre</td><td>Liste de pirates </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="richard_8c_ae863cf9f0bdae7117bf8eb0d81bd52cc_cgraph.png" border="0" usemap="#richard_8c_ae863cf9f0bdae7117bf8eb0d81bd52cc_cgraph" alt=""/></div>
<map name="richard_8c_ae863cf9f0bdae7117bf8eb0d81bd52cc_cgraph" id="richard_8c_ae863cf9f0bdae7117bf8eb0d81bd52cc_cgraph">
<area shape="rect" id="node3" href="fonction_8c.html#a1fb7fbd80de7e5f5a4c7e163252583a1" title="Collision" alt="" coords="140,5,212,35"/><area shape="rect" id="node5" href="fonction_8c.html#a51a98e0353665edaa3f3440dc9adc50a" title="fight" alt="" coords="153,59,199,88"/><area shape="rect" id="node7" href="fonction_8c.html#a19689f0d0e1ecaed209f5c356aa09376" title="set_score" alt="" coords="137,112,215,141"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a6b548bb1a7244d813b34bdad9fb5fc27"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int main_move </td>
          <td>(</td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Les actions relatives au deplacement </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>Cordonnée X du personnage Principal </td></tr>
    <tr><td class="paramname">d</td><td>Etat de deplacement du personnage Principal </td></tr>
    <tr><td class="paramname">w</td><td>Width </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>La coordonné &amp; l'etat de deplacement </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu May 23 2013 07:56:03 for Treasure Island by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>
